﻿@model MvcBoard.WebUI.Models.BoardListViewModel

@{
    ViewBag.Title = "List";
}

<h2>List</h2>

@foreach (var p in Model.Boards)
{
    Html.RenderPartial("BoardSummary", p);
}

<div class="pager">
    @Html.PageLinks(Model.PagingInfo, x => Url.Action("List",new {page = x}))
</div>
<p>@Html.ActionLink("글쓰기","Create")</p>